#define WB_SKEL_SLAVE
#define WB_SKEL_SLAVE_BASE_ADDRESS 0x120000ff


struct peripheral { 
char* name; 
VOID* info;
};

VOID print_wb_skel_slave_layout() {
printf("peripheral\n->name: wb_skel_slave\n->base address: %s\n->big endian: 0\n", WB_SKEL_SLAVE_BASE_ADDRESS)
printf(	"\n\\->register: Status register, offset: %s\n",WB_SKEL_SLAVE_STATUS_REG_OFFSET);
	printf("-->field: ENABLED, msb: 0, lsb: 0\n");
	printf("-->field: ERROR, msb: 3, lsb: 1\n");
	printf("-->field: IRQ, msb: 4, lsb: 4\n");

printf(	"\n\\->register: Command register, offset: %s\n",WB_SKEL_SLAVE_COMMAND_REG_OFFSET);
	printf("-->field: FAKE, msb: 2, lsb: 0\n");
	printf("-->field: ENABLE, msb: 3, lsb: 3\n");

printf(	"\n\\->register: Control register, offset: %s\n",WB_SKEL_SLAVE_CONTROL_REG_OFFSET);
	printf("-->field: TEST MODE, msb: 3, lsb: 0\n");

};

VOID INIT_WB_SKEL_SLAVE() {
// allocate an instance of the data structure
my_peripheral = malloc(sizeof(struct peripheral));

// fill the fields with specific references
my_peripheral->info = print_wb_skel_slave_layout;

my_peripheral->name = malloc(strlen("wb_skel_slave")+1);
strcpy(my_peripheral->name,"wb_skel_slave");

};
